package net.oschina.archx.spring.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * Created by Archx on 2015/6/22 0022.
 */
public class SpringAnnotationTask {

    final Logger log = LoggerFactory.getLogger(getClass());

    @Scheduled(cron="0/5 * *  * * ? ")
    public void execute() {
        log.info("每隔 5 秒执行一次本方法 {}", getClass().getName());
    }
}
